<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="基于区块链的图书馆">
    <meta name="keywords" content="区块链，图书馆">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>区块链图书馆</title>
    <link href="images/library.png" rel="shortcut icon">
    <link rel="stylesheet" type="text/css" href="css/common.css"/>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <script type="text/javascript" src="app/web3.min.js"></script><!--core-->
    <script type="text/javascript" src="app/truffle-contract.js"></script><!--core-->
    
  </head>
  <body>

  <!--左侧菜单栏-->
  <script type="text/javascript" src="js/nav.js"></script> 
    <header>
    <nav class="navbar navbar-default navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> <span class="sr-only">切换导航</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
          <a class="navbar-brand" href="/">AUSTLIBRARY</a> 
		</div>
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
          <ul class="nav navbar-nav navbar-right">
            <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">admin <span class="caret"></span></a>
            </li>
            <li><a href="index.html" onClick="if(!confirm('是否确认退出？')) return false;">退出登录</a></li>
          </ul>
        
      
        </div>
      </div>
    </nav>
  </header>
  <!--右侧内容栏-->
  <div id="rightContent">
    <!--右侧内容栏-->
    <div role="tabpanel" class="tab-pane">
       <div class="col-sm-9 col-sm-offset-3 col-md-10 col-lg-10 col-md-offset-2 main" id="main">
         <h1 class="page-header">信息总览</h1>
      <div class="row placeholders">
        <div class="col-xs-6 col-sm-3 placeholder">
          <h4>在库图书</h4>
          <span class="text-muted"><script>App.getPublishedBooksNum()</script>本</span> </div>
        <div class="col-xs-6 col-sm-3 placeholder">
          <h4>评论</h4>
          <span class="text-muted">0 条</span> </div>
        <div class="col-xs-6 col-sm-3 placeholder">
          <h4>借阅图书</h4>
          <span class="text-muted">0 本</span> </div>
        <div class="col-xs-6 col-sm-3 placeholder">
          <h4></h4>
          <span class="text-muted"></span> </div>
      </div>
      <h1 class="page-header">状态</h1>
      <div class="table-responsive">
        <table class="table table-striped table-hover">
          <tbody>
            <tr>
              <td>登录者: <span>admin</span>，本次登录时间: <span id="time">时间获取中:)...</span>, 本次登录IP:  <span id="ip"></span> </span></span></td>
            </tr>
           
          </tbody>
        </table>
       </div>
    </div>
  </div>
  <script>
      function mytime(){
        var a = new Date();
        var b = a.toLocaleTimeString();
        var c = a.toLocaleDateString();
        document.getElementById("time").innerHTML = c+"&nbsp"+b;}
        setTimeout(function() {mytime()},1000);
  </script>

  
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>  
<script type="text/javascript">  
document.getElementById("ip").innerHTML=returnCitySN["cip"]+','+returnCitySN["cname"];
 </script> 
 <script type="text/javascript" src="app/myBook.js"></script><!--core-->
  <script type="text/javascript" src="app/book.js"></script><!--core-->
  </body>
</html>
